<link rel="stylesheet" type="text/css" href="assets/bootstrap-datepicker/css/bootstrap-datetimepicker.min.css" />
<link rel="stylesheet" type="text/css" href="tag/selectpage.css" />
<link rel="stylesheet" type="text/css" href="tag/demo.css" />
<section id="main-content">
  <section class="wrapper">
    <!--state overview end-->
    <div class="row">
      <form>
        <div class="col-lg-12">
          <div class="alert alert-block alert-warning fade in">
            <button data-dismiss="alert" class="close close-sm" type="button">
              <i class="icon-remove"></i>
            </button>
            <strong>注意事项：</strong><br />
            1、只有立项通过的项目才可以挂靠出差公干等费用；<br />
            2、如果出差公干为了某个线索阶段的项目，请选择该线索阶段项目归属的部门项目挂靠费用。
          </div>
          <section class="panel hdoabtmeg">
            <header class="panel-heading">
              出差/公干信息
            </header>
            <div class="panel-body">
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">类型</label>
                <div class="col-sm-10">
                  <select id="type" class="form-control" name="type" onchange="changeType(this.value)">
                    <option value="1">出差</option>
                    <option value="2">公干</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">归属部门*</label>
                <div class="col-sm-10">
                  <select id="deptCode" class="form-control" name="deptCode" ng-model="deptCode">
                    <option ng-repeat="x in depts" value="{{x.departmentCode}}">{{x.departmentName}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">归属项目</label>
                <div class="col-sm-10">
                  <input type="text" id="proName" name="proName" class="form-control" placeholder="项目名称自动检索">
                  <input type="hidden" value="" name="proId" certus-required id="proId" />
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">随同人员</label>
                <div class="col-sm-10">
                  <input type="text" placeholder="输入后请选择" class="input-block-level" id="selectPage">
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">地点</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="planCity" certus-required>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">计划开始时间</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="plansTime" certus-required>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">计划结束时间</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="planeTime" certus-required>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">工作计划</label>
                <div class="col-sm-10">
                  <textarea class="form-control" id="planComments" maxlength="120" placeholder="字数限制(120字以内)" certus-required></textarea>
                </div>
              </div>
            </div>
          </section>

          <section class="panel hdoabtmeg">
            <header class="panel-heading">
              费用预测
            </header>
            <div class="panel-body">
              <div class="form-group customerForm" id="ist1">
                <label class="col-sm-2 control-label">火车/汽车费用</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value="" class="form-control"
                    id="carBuget" certus-required>
                </div>
              </div>
              <div class="form-group customerForm" id="ist2">
                <label class="col-sm-2 control-label">飞机费用</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value="" class="form-control"
                    id="planeBuget" certus-required>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">交通费用</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value="" class="form-control"
                    id="trafficBuget" certus-required>
                </div>
              </div>
              <div class="form-group customerForm" id="ist3">
                <label class="col-sm-2 control-label">住宿费用</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value="" class="form-control"
                    id="stayBuget" certus-required>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">招待费</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value="" class="form-control"
                    id="serveBuget" certus-required>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">其他费用</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value="" class="form-control"
                    id="otherBuget" certus-required>
                </div>
              </div>
              <div class="form-group customerForm" id="isTrip">
                <label class="col-sm-2 control-label">出差补助</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value="" class="form-control"
                    id="subsidyBuget" certus-required>
                </div>
              </div>
              
            </div>
          </section>

          <section class="panel">
            <div class="panel-body">
                <p class="default-buttons">
                    <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
                    <a href="javascript:void(0);" class="button-next  btn btn-success addTripPlan">确认提交</a>
                  </p>
            </div>
          </section>
        </div>
      </form>
    </div>
  </section>
</section>
<script type="text/javascript" src="assets/bootstrap-datepicker/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="js/autocomplete/jquery.autocomplete.js"></script>
<script src="tag/b.selectpage.js"></script>
<script src="tag/selectpage.js"></script>
<script src="js/trip/singleTrip.js"></script>
<script>
  //时间控件
  $("#plansTime").datetimepicker({
      format: 'yyyy-mm-dd hh:ii:ss'
  });
  $("#planeTime").datetimepicker({
    format: 'yyyy-mm-dd hh:ii:ss'
  });
</script>